<ion-header>
    <ion-navbar color="orange">
        <ion-title>
            零钱提现
        </ion-title>
    </ion-navbar>
</ion-header>

<ion-content>
    <div class="mt-box">
        <div class="ht-100 ht-border-bottom">
            <div class="ht-100 ht-line-50 ht-font-14 ht-333">提现金额
            </div>
            <div class="ht-100 ht-overflow">
                <span class="ht-font-30 ht-blod ht-000">￥</span>
                <input type="number" class="mt-input" placeholder="0.00" [(ngModel)]="postData.amount" [style.color]="postData.amount > moneyInfo.money ? 'red':'black'">
            </div>
        </div>
        <div class="ht-100 ht-overflow ht-margin-top10 ht-font-14 ht-999">
            <span *ngIf="!(postData.amount > moneyInfo.money)">
                零钱金额：￥{{moneyInfo.money}}
            </span>
            <span class="text-red" *ngIf="postData.amount > moneyInfo.money;else block">
                提现金额不能大于当前账户余额
            </span>
            <ng-template #block>
                <span class="text-red" *ngIf="postData.amount != '' && postData.amount != undefined && postData.amount < 1">
                    提现金额最少为1元
                </span>
            </ng-template>
        </div>
        <div>
            <span class="ht-999 ht-font-14">
                每天只能提现一次哦！
            </span>
        </div>
        <!--<input class="mt-btn" (click)="doWithdraw()">-->
        <button ion-button [full]="true" color="orange" class="mt-btn" (click)="doWithdraw()" [disabled]="postData.amount == '' || postData.amount < 1 || postData.amount > moneyInfo.money">提现
        </button>
    </div>
</ion-content>